package _img;

import java.awt.Image;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;

public class DesktopImages implements I_Image{
	
	public Image read(String imageName)
	{
		Image im = null;
		try {
			switch (imageName)
			{
			case "BrickWall":
				im = ImageIO.read(new File("src\\_img\\BrickWall.jpg"));
				break;
			case "ConcreteWall":
				im = ImageIO.read(new File("src\\_img\\ConcreteWall.jpg"));
				break;
			case "Bush":
				im = ImageIO.read(new File("src\\_img\\Bush.png"));
				break;
			case "Ice":
				im = ImageIO.read(new File("src\\_img\\Ice.jpg"));
				break;
			case "Water":
				im = ImageIO.read(new File("src\\_img\\Water.jpg"));				
				break;
			case "Chicken":
				im = ImageIO.read(new File("src\\_img\\Chicken.jpg"));
				break;
			case "MyTank_Up":
				im = ImageIO.read(new File("src\\_img\\MyTank_Up.jpg"));
				break;
			case "MyTank_Down":
				im = ImageIO.read(new File("src\\_img\\MyTank_Down.jpg"));
				break;
			case "MyTank_Left":
				im = ImageIO.read(new File("src\\_img\\MyTank_Left.jpg"));
				break;
			case "MyTank_Right":
				im = ImageIO.read(new File("src\\_img\\MyTank_Right.jpg"));
				break;
			case "myBullet":
				im = ImageIO.read(new File("src\\_img\\MyBullet.png"));
				break;
			case "enemyBullet":
				im = ImageIO.read(new File("src\\_img\\EnemyBullet.png"));
				break;
			}
		} catch (IOException e) {}
		return im;
	}
}